package com.paradogs.gs.db;

import com.baidu.bjf.remoting.protobuf.annotation.ProtobufClass;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.paradogs.gs.misc.BaseMgrMultiEntity;
import com.paradogs.gs.misc.annotations.CodeAutoGeneratorModule;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @author: yumi
 * @date: 2024/12/23  14:40
 * @Description: 商店购买记录
 */
@CodeAutoGeneratorModule("shop")
@Data
@AllArgsConstructor
@NoArgsConstructor
@ProtobufClass
@EqualsAndHashCode(callSuper = true)
@TableName(value = "mgr_shop_record", autoResultMap = true)
public class ShopRecord extends BaseMgrMultiEntity {

    // 商品项 ID
    @TableField("cfg_id")
    private Integer cfgId;

    // 购买次数
    @TableField("buy_count")
    private Integer buyCount;

    // 上次购买时间
    @TableField("last_buy_time")
    private LocalDateTime lastBuyTime;

}
